import './App.css';
import React from 'react';
import Toolbar from "./Toolbar";
import { Button, Toast, List, Switch, InputItem } from 'antd-mobile';
import * as request from './request';
import Header from "./Header";
import { connect } from 'react-redux';

const apiURL = "/api/services/app/Edu_Children/GetList?SkipCount=0&MaxResultCount=10&memberId=";
class App extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      childData: [],
    }
  }
  componentDidMount() {

  }
  componentWillUnmount = () => {
    this.setState = (state, callback) => {
      return;
    };
  }
  render() {
    return (
      <div>
        <Header state={this.props} />
        <Toolbar history={this.props.history} selectedTab='Course' />
      </div>
    )
  };
}
export default connect(
  state => ({ currentUser: state.setCurrentUser, currentChild: state.setCurrentChild })
)(App)
